﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreGallery.Addins.Contracts;

namespace CoreGallery.Core.PhotoMgr
{
    /// <summary>
    /// Provides minimal implementation of IPhoto.  Used for PhotoManager.
    /// Specific providers should implement their own.
    /// </summary>
    public class StubPhoto : IPhoto
    {
        string _name;
        long _width, _height;
        IList<MetadataElement> metadata = new List<MetadataElement>();

        public StubPhoto(string name, long width, long height)
        {
            _name = name;
            _width = width;
            _height = height;
        }

        #region IPhoto Members

        public IList<MetadataElement> Metadata
        {
            get { return metadata; }
        }

        public System.IO.Stream GetPhotoStream()
        {
            throw new NotImplementedException();
        }

        public System.IO.Stream GetThumbnailStream()
        {
            throw new NotImplementedException();
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public long Width
        {
            get { return _width; }
        }

        public long Height
        {
            get { return _height; }
        }

        #endregion
    }
}
